﻿<%@ Page Language="C#" MasterPageFile="~/QuanTri/Manager.master" AutoEventWireup="true" CodeFile="QuanLyKhoi-Ban-Lop-Mon.aspx.cs" Inherits="QuanTri_QuanLyLop_Khoi_Mon" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head1" Runat="Server">
 <link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">
    <div style="width: 100%; height: auto;">
        <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">
                <div class="personal_top_text">
                    Quản lý Khối-Ban-Lớp-Môn
                </div>
                <div>
                    <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="3" Width="100%">
                     <asp:TabPanel CssClass="TabContainer" HeaderText="Khối học" ID="tbKhoi" runat="server">
                      <ContentTemplate>
                        <br /><br />
                        <div class="personal_style_form">
                    <span class="personal_laber">Tên khối</span>
                    <asp:TextBox runat="server" ID="txtTenKhoi" Width="250px"></asp:TextBox>
                    <asp:Label ID="lblMa" runat="server" Visible="False"></asp:Label>
                </div>
                <div id="personalSubmit" class="personal_submit clearfix">
                    <asp:Button  ID="btnLuu" Text="Lưu" CssClass="button_150" runat="server" onclick="btnLuu_Click" 
                        />&nbsp;&nbsp;
                        <asp:Button  ID="btnSua" Text="Sửa" CssClass="button_150" runat="server" onclick="btnSua_Click" 
                         />&nbsp;&nbsp;
                        <asp:Button  ID="btnXoa" Text="Xóa" CssClass="button_150" runat="server" 
                        Visible="False" />&nbsp;&nbsp;
                    <asp:Button ID="btnTaoMoi" Text="Tạo Mới" CssClass="button_150" runat="server" 
                       />&nbsp;&nbsp;
                </div><br />
                   <div>
                    <asp:GridView ID="grvKhoiHoc" runat="server" AutoGenerateColumns="False" Width="100%"
                        AllowPaging="True" Height="28px" ShowFooter="True" onselectedindexchanged="grvKhoiHoc_SelectedIndexChanged" 
                        >
                         <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:TemplateField HeaderText="STT">
                                <ItemTemplate>
                                <center>
                                    <%# Container.DataItemIndex + 1 %></center>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tên khối">
                                <ItemTemplate>
                                <center>
                                    <asp:Label ID="lblMa" runat="server" Text='<%#Bind("MaKhoi") %>' Visible="false"></asp:Label>
                                    <asp:Label ID="lblTenKhoi" runat="server" Text='<%#Bind("TenKhoi") %>'></asp:Label></center>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField EditText="Chọn" HeaderText="Chọn" ShowSelectButton="True" 
                                SelectText="Chọn" >  
                                <ControlStyle Font-Underline="True" ForeColor="Blue" />
                            </asp:CommandField>
                        </Columns>
                         <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#E4ECEF" Font-Bold="True" BorderColor="Blue" Height="30px" />
                       </asp:GridView>
                </div>
                      
                        
                        </ContentTemplate>
                     
</asp:TabPanel>
                        
                     <asp:TabPanel HeaderText="Ban học" ID="tbBan" runat="server">
                       <ContentTemplate>
<br /><br />
                       <div class="personal_style_form">
                    <span class="personal_laber">Tên ban</span>
                    <asp:TextBox runat="server" ID="txtTenBan" Width="250px"></asp:TextBox>
                    <asp:Label ID="lblMaBan" runat="server" Visible="False"></asp:Label>
                </div>
                <div id="Div1" class="personal_submit clearfix">
                    <asp:Button  ID="btnSave" Text="Lưu" CssClass="button_150" runat="server" onclick="btnSave_Click" 
                       />&nbsp;&nbsp;
                        <asp:Button  ID="btnUpDate" Text="Sửa" CssClass="button_150" runat="server" onclick="btnUpDate_Click" 
                        />&nbsp;&nbsp;
                        <asp:Button  ID="btnDelete" Text="Xóa" CssClass="button_150" runat="server" 
                        Visible="False" />&nbsp;&nbsp;
                    <asp:Button ID="btnNew" Text="Tạo Mới" CssClass="button_150" runat="server" 
                        />&nbsp;&nbsp;
                </div><br />
                <div>
                           <asp:GridView ID="grvBanHoc" runat="server" AllowPaging="True" 
                               AutoGenerateColumns="False" Height="28px"  
                               Width="100%" OnSelectedIndexChanged="grvBanHoc_SelectedIndexChanged1">
                                <RowStyle BackColor="#EFF3FB" />
                               <Columns>
                                   <asp:TemplateField HeaderText="STT">
                                       <ItemTemplate>
                                           <center>
                                               <%# Container.DataItemIndex + 1 %></center>
                                       </ItemTemplate>
                                   </asp:TemplateField>
                                   <asp:TemplateField HeaderText="Tên Ban">
                                       <ItemTemplate>
                                           <center>
                                               <asp:Label ID="lblMaBan" runat="server" Text='<%#Bind("MaBan") %>' 
                                                   Visible="false"></asp:Label>
                                               <asp:Label ID="lblTenBan" runat="server" Text='<%#Bind("TenBan") %>'></asp:Label>
                                           </center>
                                       </ItemTemplate>
                                   </asp:TemplateField>
                                   <asp:CommandField EditText="Chọn" HeaderText="Chọn" ShowSelectButton="True" 
                                       SelectText="Chọn">
                                       <ControlStyle Font-Underline="True" ForeColor="Blue" />
                                   </asp:CommandField>
                               </Columns>
                                <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#E4ECEF" Font-Bold="True" BorderColor="Blue" Height="30px" />
                           </asp:GridView>
                </div>
                       
                        
                        </ContentTemplate>
                     
</asp:TabPanel>
                        
                     <asp:TabPanel CssClass="TabContainer" HeaderText="Lớp học" ID="tbLop" runat="server">
                      <ContentTemplate>
<br /><br />
                      <div class="personal_style_form">
                    <span class="personal_laber">Khối học</span>
                          <asp:DropDownList ID="ddlKhoiHoc" Width="200px" runat="server">
                          </asp:DropDownList>
                </div>
                       <div class="personal_style_form">
                    <span class="personal_laber">Tên Lớp</span>
                    <asp:TextBox runat="server" ID="txtTenLop" Width="250px" 
                               ></asp:TextBox>
                    <asp:Label ID="lblMaLop" runat="server" Visible="False"></asp:Label>
                </div>
                <div id="Div2" class="personal_submit clearfix">
                    <asp:Button  ID="btnThem" Text="Lưu" CssClass="button_150" runat="server" onclick="btnThem_Click" 
                       />&nbsp;&nbsp;
                        <asp:Button  ID="btnThayDoi" Text="Sửa" CssClass="button_150" 
                        runat="server" onclick="btnThayDoi_Click"
                        />&nbsp;&nbsp;
                        <asp:Button  ID="btnHuy" Text="Xóa" CssClass="button_150" runat="server" 
                        Visible="False" />&nbsp;&nbsp;
                    <asp:Button ID="btnMoi" Text="Tạo Mới" CssClass="button_150" runat="server" onclick="btnMoi_Click" 
                        />&nbsp;&nbsp;
                </div><br />
                <div>
                           <asp:GridView ID="grvLop" runat="server" AllowPaging="True" 
                               AutoGenerateColumns="False" Height="28px"  
                               Width="100%" onselectedindexchanged="grvLop_SelectedIndexChanged">
                                <RowStyle BackColor="#EFF3FB" />
                               <Columns>
                                   <asp:TemplateField HeaderText="STT">
                                       <ItemTemplate>
                                           <center>
                                               <%# Container.DataItemIndex + 1 %></center>
                                       </ItemTemplate>
                                   </asp:TemplateField>
                                   <asp:TemplateField HeaderText="Tên lớp">
                                       <ItemTemplate>
                                           <center>
                                               <asp:Label ID="lblMaLop" runat="server" Text='<%#Bind("MaLop") %>' 
                                                   Visible="false"></asp:Label>
                                               <asp:Label ID="lblTenBan" runat="server" Text='<%#Bind("TenLop") %>'></asp:Label>
                                           </center>
                                       </ItemTemplate>
                                   </asp:TemplateField>
                                   <asp:TemplateField HeaderText="Khối học">
                                       <ItemTemplate>
                                           <center>
                                               <asp:Label ID="lblTenKhoi" runat="server" Text='<%#Bind("TenKhoi") %>'></asp:Label>
                                           </center>
                                       </ItemTemplate>
                                   </asp:TemplateField>
                                   <asp:CommandField EditText="Chọn" HeaderText="Chọn" ShowSelectButton="True" 
                                       SelectText="Chọn">
                                       <ControlStyle Font-Underline="True" ForeColor="Blue" />
                                   </asp:CommandField>
                               </Columns>
                               <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                               <HeaderStyle BackColor="#E4ECEF" Font-Bold="True" BorderColor="Blue" Height="30px" />
                           </asp:GridView>
                </div>
                       
                        
                        </ContentTemplate>
                     
</asp:TabPanel>
                        
                     <asp:TabPanel CssClass="TabContainer" HeaderText="Môn học" ID="tbMon" runat="server">
                      <ContentTemplate>
<br /><br />
                       <div class="personal_style_form">
                    <span class="personal_laber">Môn học</span>
                    <asp:TextBox runat="server" ID="txtTenMon" Width="250px" 
                               ></asp:TextBox>

                    <asp:Label ID="lblMaMon" runat="server" Visible="False"></asp:Label>

                </div>
                 <div class="personal_style_form">
                    <span class="personal_laber">Ký hiệu</span>
                          <asp:TextBox runat="server" ID="txtKyHieu" Width="250px" 
                               ></asp:TextBox>

                </div>
                <div id="Div3" class="personal_submit clearfix">
                    <asp:Button  ID="btnNhap" Text="Lưu" CssClass="button" runat="server" onclick="btnNhap_Click" 
                       />
&nbsp;&nbsp;
                        <asp:Button  ID="btnFix" Text="Sửa" CssClass="button" runat="server" onclick="btnFix_Click"
                        />
&nbsp;&nbsp;
                        <asp:Button  ID="btnXoaMon" Text="Xóa" CssClass="button" runat="server" 
                        Visible="False" />
&nbsp;&nbsp;
                    <asp:Button ID="btnLamMoi" Text="Tạo Mới" CssClass="button" runat="server" onclick="btnLamMoi_Click" 
                        />
&nbsp;&nbsp;
                </div><br />
                <div>
                           <asp:GridView ID="grvMon" runat="server" AllowPaging="True" 
                               AutoGenerateColumns="False" Height="28px"  
                               Width="100%" onselectedindexchanged="grvMon_SelectedIndexChanged">
                                <RowStyle BackColor="#EFF3FB" />
                               <Columns>
<asp:TemplateField HeaderText="STT">
                                       <ItemTemplate>
                                           <center>
                                               <%# Container.DataItemIndex + 1 %></center>
                                       </ItemTemplate>
                                   </asp:TemplateField>
<asp:TemplateField HeaderText="Môn học">
                                       <ItemTemplate>
                                           <center>
                                               <asp:Label ID="lblMaMon" runat="server" Text='<%#Bind("MaMon") %>' 
                                                   Visible="false"></asp:Label>
                                               <asp:Label ID="lblTenMon" runat="server" Text='<%#Bind("TenMon") %>'></asp:Label>
                                           </center>
                                       </ItemTemplate>
                                   </asp:TemplateField>
                                   <asp:TemplateField HeaderText="Ký hiệu">
                                       <ItemTemplate>
                                           <center>
                                               <asp:Label ID="lblKyHieu" runat="server" Text='<%#Bind("KyHieu") %>'></asp:Label>
                                           </center>
                                       </ItemTemplate>
                                   </asp:TemplateField>
                                   <asp:CommandField EditText="Chọn" HeaderText="Chọn" ShowSelectButton="True" SelectText="Chọn">
                                       <ControlStyle Font-Underline="True" ForeColor="Blue" />
                                   </asp:CommandField>
                               </Columns>

                                <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#E4ECEF" Font-Bold="True" BorderColor="Blue" Height="30px" />
                            </asp:GridView>

                        </div>
                        </ContentTemplate>
                     
                        </asp:TabPanel>
                        
                    </asp:TabContainer>
                </div>
            </div>
         </div>
    </div>
</asp:Content>

